﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="DreamCMS.Web.Admin.ArtMgr.Manage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../css/style.css" rel="stylesheet" />
    <script src="../js/jquery-1.5.2.js"></script>
    <script src="../js/adminjs.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div class="list">
                <h3>文章管理</h3>
                <div class="listtable arttable">
                    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

                    <table>
                        <thead>
                            <tr class="th">
                                <th width="5%">序号</th>
                                <th width="5%">选择</th>
                                <th width="40%">文章标题</th>
                                <th width="10%">更新时间</th>
                                <th width="10%">分类</th>
                                <th width="5%">预览</th>
                                <th width="25%">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="rpArt" runat="server">

                                <ItemTemplate>
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                                            <tr>
                                                <td>1</td>
                                                <td>选择</td>
                                                <td><%#Eval("Title") %></td>
                                                <td><%# Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy-MM-dd") %></td>
                                                <td><%#Eval("CatInfo.Name") %></td>
                                                <td><a href='<%# ResolveClientUrl("~/Post.aspx?name="+Eval("PostId"))  %>' target="_blank">
                                                    <img src="../images/vlog.gif" /></a></td>
                                                <td>
                                                    <asp:LinkButton ID="lkbDelete" runat="server" OnCommand="lkbDelete_Command" CommandArgument='<%#Eval("PostId") %>' OnClientClick="confirm('你确定要删除吗，目前本站还没有回收站机制，删除后不可恢复哦')">删除</asp:LinkButton>
                                                    <a href="AddArt.aspx?edittype=edit&id=<%#Eval("PostId") %>">编辑</a>
                                                </td>
                                            </tr>

                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </ItemTemplate>


                            </asp:Repeater>
                        </tbody>
                    </table>

                </div>
            </div>
        </div>

    </form>
</body>
</html>
